package com.thread.count;

public class extendsThread extends Thread {
	int i = 100000;
	private String threadName;

	public extendsThread(String threadName) {
		super();
		this.threadName = threadName;
	}

	public extendsThread() {
	}

	public void run() {
		while (true) {
			synchronized (extendsThread.class) {
				i--;
				if (i < 0) {

					break;
				}
				System.out.println(i + "---" + Thread.currentThread().getName());
			}
		}
	}

}
